package njClass.game
{
	import flash.display.DisplayObject;
	import flash.events.EventDispatcher;
	import flash.events.KeyboardEvent;

	public class KeyboardControl extends EventDispatcher
	{
		public var Root:DisplayObject;
		
		public function KeyboardControl(_root:DisplayObject)
		{
			Root=_root;
			
			initEvent();
		}
		
		private function initEvent():void{
			Root.addEventListener(KeyboardEvent.KEY_DOWN,KeyDown);
		}
		
		private function KeyDown(evt:KeyboardEvent):void{
			trace(evt);
		}
	}
}